package com.baidu.disconf.web.service.config.vo;

import java.util.List;

import com.baidu.disconf.web.service.zookeeper.dto.ZkDisconfData.ZkDisconfDataItem;

/**
 * @author liaoqiqi
 * @version 2014-6-23
 */
public class ConfListVo {

	private Long configId;

	private String appName;
	private Long appId;
	private String version;
	private Long envId;
	private String envName;

	private String type;
	private Integer typeId;

	private String key;

	private String value;

	private String createTime;

	private String modifyTime;

	private String remark;

	//
	// zk data
	//
	private int machineSize;
	private List<ZkDisconfDataItem> machineList;
	private int errorNum = 0;

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public Long getAppId() {
		return appId;
	}

	public void setAppId(Long appId) {
		this.appId = appId;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public Long getEnvId() {
		return envId;
	}

	public void setEnvId(Long envId) {
		this.envId = envId;
	}

	public String getType() {
		return type;
	}

	public String getEnvName() {
		return envName;
	}

	public int getErrorNum() {
		return errorNum;
	}

	public void setErrorNum(int errorNum) {
		this.errorNum = errorNum;
	}

	public void setEnvName(String envName) {
		this.envName = envName;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(String modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Long getConfigId() {
		return configId;
	}

	public void setConfigId(Long configId) {
		this.configId = configId;
	}

	public Integer getTypeId() {
		return typeId;
	}

	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

	public int getMachineSize() {
		return machineSize;
	}

	public void setMachineSize(int machineSize) {
		this.machineSize = machineSize;
	}

	public List<ZkDisconfDataItem> getMachineList() {
		return machineList;
	}

	public void setMachineList(List<ZkDisconfDataItem> machineList) {
		this.machineList = machineList;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String toString() {
		return "ConfListVo [configId=" + configId + ", appName=" + appName + ", appId=" + appId + ", version=" + version
				+ ", envId=" + envId + ", envName=" + envName + ", type=" + type + ", typeId=" + typeId + ", key=" + key
				+ ", value=" + value + ", createTime=" + createTime + ", modifyTime=" + modifyTime + ", remark="
				+ remark + ", machineSize=" + machineSize + ", machineList=" + machineList + ", errorNum=" + errorNum
				+ "]";
	}

}
